From: Gianfranco Costamagna Date: Sat, 4 May 2024 05:18:23 +0000 (+0200) Subject: Link with -latomic when mips* processor is detected X-Git-Tag: archive/raspbian/1%14.0.6-20+rpi1^2~69 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=f05445affbf25bebdb48efb00469189a6f173e2d;p=llvm-toolchain-14.git Link with -latomic when mips* processor is detected Last-Update: 2016-07-27 Gbp-Pq: Topic lldb Gbp-Pq: Name lldb-link-atomic-cmake.patch --- diff --git a/lldb/source/Utility/CMakeLists.txt b/lldb/source/Utility/CMakeLists.txt index cc0bf5fdb6..3141d59c8c 100644 --- a/lldb/source/Utility/CMakeLists.txt +++ b/lldb/source/Utility/CMakeLists.txt @@ -15,6 +15,13 @@ endif() list(APPEND LLDB_SYSTEM_LIBS ${CMAKE_DL_LIBS}) +if(CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "mips" OR + CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "mipsel" OR + CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "mips64el" OR + CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "powerpcspe") + list(APPEND LLDB_SYSTEM_LIBS atomic) +endif() + if (CMAKE_SYSTEM_NAME MATCHES "Windows") list(APPEND LLDB_SYSTEM_LIBS ws2_32 rpcrt4) endif ()